﻿using WeDonekRpc.Model;
using RpcStore.DAL.Model;
using RpcStore.Model.DB;
using RpcStore.Model.TransmitScheme;
using RpcStore.RemoteModel.TransmitScheme.Model;

namespace RpcStore.DAL
{
    public interface IServerTransmitSchemeDAL
    {
        void CheckIsRepeat (long rpcMerId, TransmitSchemeSet add);
        long Add (TransmitSchemeAdd scheme);
        void Adds (TransmitSchemeAdd[] data);
        void Delete (long schemeId);
        ServerTransmitSchemeModel Get (long id);
        ServerTransmitSchemeModel[] Query (TransmitSchemeQuery query, IBasicPage paging, out int count);
        void SetScheme (long id, TransmitSchemeSetDatum set);
        void SetIsEnable (long id, bool isEnable);
        void CheckIsRepeatEnable (ServerTransmitSchemeModel scheme);
        BasicScheme[] Clear (long rpcMerId);
    }
}